package com.nlx.notes.module.core.enums.error;

import com.nlx.notes.module.core.consts.ErrorCodeConst;
import com.nlx.notes.support.handler.exception.ErrorCode;
import lombok.Getter;

@Getter
public enum FlowCodeEnum implements ErrorCode {

    FLOW_NOT_EXIST(1, "流水不存在"),
    BILL_IS_NOT_DATA(2,"账单中没有数据"),
    BILL_IMPORT_ERROR(3,"账单导入失败"),
    FLOW_TYPE_NOT_SUPPORTED(4,"当前类型不支持"),
    FLOW_DATE_TYPE_NOT_SUPPORTED(4,"查询的日期类型不支持"),
    ;

    private final int code;

    private final String message;

    FlowCodeEnum(int code, String message) {
        this.code = ErrorCodeConst.FLOW_ERROR_CODE_SUFFIX + code;
        this.message = message;
    }

}
